% garbage
\documentclass[10pt]{report}

%\usepackage{appendix}
%\usepackage{isoent}    %\sfrac
%\usepackage{palatino} %font
%\usepackage{newcent}   %font

\usepackage{floatflt}
\usepackage{fancyhdr}
\usepackage{textcomp}
\usepackage{wrapfig}
\usepackage[usenames]{color}
\usepackage{xfrac}    %\sfrac
\usepackage{sectsty} %custom section headings
\usepackage[Bjarne]{fncychap} %Canned chapter headings
\usepackage{multicol}
\usepackage[bookmarks=true,colorlinks,linkcolor=cyan,breaklinks]{hyperref}

%\usepackage{fontspec}
%\setmainfont{Adobe Caslon Pro}

\newcommand{\normalsections}{
\sectionfont{\noindent\rule{\textwidth}{0.015in}\\\nohang}
\subsectionfont{\noindent\rule{\textwidth}{0.005in}\\\nohang}
}

\newcommand{\columnsections}{
\sectionfont{\vspace*{-20pt}\noindent\rule{3.5in}{0.015in}\\\nohang}
\subsectionfont{\vspace*{-20pt}\noindent\rule{3.5in}{0.005in}\\\nohang}
}


\sectionfont{\noindent\rule{\textwidth}{0.015in}\\\nohang}
\subsectionfont{\noindent\rule{3.5in}{0.005in}\\\nohang}





%%%%Margins%%%
\topmargin 0pt
\advance \topmargin by -\headheight
\advance \topmargin by -\headsep
\textheight 8.9in
\oddsidemargin -0.25in
\evensidemargin \oddsidemargin
\textwidth 7in
\oddsidemargin -0.25in
%\setlength {\parindent} {0pt}



%%%Formatting%%%
\newcommand{\ability}[2]{\smallskip \noindent \textbf{#1} #2}
\newcommand{\shortability}[2]{\noindent\textbf{#1} #2\\}
\newcommand{\bolded}[1]{\noindent\textbf{#1}}
\newcommand{\itemability}[2]{\item \textbf{#1} #2}
\newcommand{\featname}[1]{\vspace*{0.1cm plus 0.2cm minus 0.05cm}\noindent\textbf{#1}\\}
\newcommand{\featnamelist}[1]{\vspace*{0.1cm plus 0.2cm minus 0.05cm}\noindent\textbf{#1}}

\newcommand{\descfeat}[2]{\featname{#1}\emph{#2}\\}
%\newcommand{\classname}[1]{\noindent \underline{\large \textbf{#1}}}
\newcommand{\business}[6]{
	\vspace{2pt}
	\noindent\hspace*{1cm}\textbf{#1}\\
	\noindent\hspace*{1cm}\textbf{Primary Skill:} #2\\
	\noindent\hspace*{1cm}\textbf{Secondary Skills:} #3\\
	\noindent\hspace*{1cm}\textbf{Capital:} #4\\
	\noindent\hspace*{1cm}\textbf{Resources:} #5\\
	\noindent\hspace*{1cm}\textbf{Risk:} #6
	\vspace{2pt}
}
\newcommand{\classname}[1]{\subsection{#1}}
\newcommand{\condition}[1]{\emph{#1}}
\newcommand{\quot}[1]{\emph{#1}\medskip}
\newcommand{\desc}[1]{#1 \medskip}
\newcommand{\example}[1]{\emph{#1}}
\newcommand{\magicitem}[1]{\emph{#1}}
\newcommand{\monster}[1]{\subsection{#1} \label{monster:#1}}
\newcommand{\monsterline}[2]{\textbf{#1:} #2\\}
\newcommand{\monstersizetype}[2]{\textbf{#1 #2}\\}
\newcommand{\spell}[1]{\emph{\MakeLowercase{#1}}}
\newcommand{\spelllist}[1]{\smallskip \noindent \underline{\textbf{#1}}}

% For the feats -- moved here from feats.tex because we added another 
% section(s) for feats. -Surgo
\newcommand{\minitabular}[1]{\begin{tabular}{p{0.25in}p{2.9in}} #1\\ \end{tabular}}
\newcommand{\babfeat}[7]{
	\noindent\minitabular{\multicolumn{2}{l}{\parbox{3in}{\textbf{#1}}}}
	\minitabular{\multicolumn{2}{l}{\parbox{3in}{\small #2}}}
	\minitabular{\raggedleft\textbf{\small \textbf{+0:}}& {\small #3}}
	\minitabular{\raggedleft\textbf{\small +1:} & {\small #4}}
	\minitabular{\raggedleft\textbf{\small +6:} & {\small #5}}
	\minitabular{\raggedleft\textbf{\small +11:} & {\small #6}}
	\minitabular{\raggedleft\textbf{\small +16:} &{\small #7}}
}
\newcommand{\skillfeat}[8]{
	\noindent\minitabular{\multicolumn{2}{l}{\parbox{3in}{\textbf{#1}}}}
	\minitabular{\multicolumn{2}{l}{\parbox{3in}{\small #2}}}
	\minitabular{\multicolumn{2}{l}{\parbox{3in}{\small\textbf{#3}}}}
	\minitabular{\raggedleft\textbf{\small \textbf{0:}} &{\small #4}}
	\minitabular{\raggedleft\textbf{\small 4:} &{\small #5}}
	\minitabular{\raggedleft\textbf{\small 9:} &{\small #6}}
	\minitabular{\raggedleft\textbf{\small 14:} &{\small #7}}
	\minitabular{\raggedleft\textbf{\small 19:} &{\small #8}}
}

\newcommand{\boxit}[1]{\frame{\parbox{\textwidth}{#1}}}

% A new box command -- the first argument is the box's header, the second the 
% contents of the box. This looks a lot better than \boxit. -Surgo
\newcommand{\abox}[2]{\vspace{5pt}
	\fbox{\begin{minipage}{0.8\linewidth}
	\setlength{\parindent}{0.15in}
	\textbf{#1}

	#2
\end{minipage}}
\vspace{5pt}}

\newcommand{\itemspace}{\setlength{\itemsep}{-1mm}\setlength{\topsep}{-1mm} }

\newcommand{\listone}{\begin{list}{$\bullet$}{\itemspace}}
\newcommand{\listprereq}{\begin{list}{\vspace*{-2pt}}{\itemspace}}
\newcommand{\listtwo}{\begin{list}{$\triangleright$}{\itemspace}}
\newcommand{\listthree}{\begin{list}{--}{\itemspace}}

% Bold the first argument in the listitem
\newcommand{\bolditem}[2]{\item \textbf{#1} #2}

\newcommand{\slashfrac}[2]{${}^{#1}$\hspace*{-1pt}\makebox[2pt]{$\diagup$}${}_{#2}$}
%\newcommand{\half}[0]{\slashfrac{1}{2}}
\newcommand{\half}[0]{\ensuremath{\sfrac{1}{2}} }
\newcommand{\third}[0]{\ensuremath{\sfrac{1}{3}} }
\newcommand{\fourth}[0]{\ensuremath{\sfrac{1}{4}} }
%\newcommand{\half}[0]{\ensuremath{\scriptscriptstyle 1/2}}
%\newcommand{\threefourths}[0]{\ensuremath{\sfrac{3}{4}}}

\newcommand{\maneuver}[3]{\noindent\desc{\textbf{#1}\\\ability{Level:}{#2}\\#3}}


%\rule{\textwidth}{0.005in}

%\renewcommand{\sectionmark}[1]{\markright{\thesection\ \boldmath\emph{#1}\unboldmath}\\\rule{\textwidth}{0.005in}\\}

\begin{document}

%%%%%%% Front several pages
\input{cover}




\pagestyle{fancy}
%Fix the spacing so it's all reasonable
\linespread{.9}  \small  \normalsize \itemspace \normalsections

\tableofcontents

%%%%%%% Game Basics
\chapter{Basics}
\input{basics}

%%%%%%% Character Creation
\chapter{Character Creation}
\input{creation}

%%%%%%% Races
\chapter{Races}
\input{oddraces}

\chapter{Alignment}
\input{alignment}
\input{necrointro}


%%%%%%% Base Classes
\chapter{Character Base Classes}

\section{Core PC Classes}
\input{baseclasses/assassin}
\input{baseclasses/barbarian}
%\input{baseclasses/pending/bard}
\input{baseclasses/cleric}
\input{baseclasses/druid}
\input{baseclasses/fighter}
\input{baseclasses/community/kantianpaladin}
\input{baseclasses/knight}
%\input{baseclasses/pending/masterofwrath}%
\input{baseclasses/monk}
%\input{baseclasses/pending/paladin}
%\input{baseclasses/pending/ranger}%
\input{baseclasses/rogue}
\input{baseclasses/samurai}
\input{baseclasses/wizard}



\section{Additional PC Classes}

\input{baseclasses/community/curator}
%\input{baseclasses/community/defender}
%\input{baseclasses/community/dreadnecro}
\input{baseclasses/elementalist}
\input{baseclasses/firemage}
%\input{baseclasses/pending/greenmage}
%\input{baseclasses/community/gadgeteer}
\input{baseclasses/jester}
\input{baseclasses/marshal}
\input{baseclasses/monstertamer}
\input{baseclasses/community/ninja}
\input{baseclasses/puppeteer}
\input{baseclasses/community/shadowwarrior}
%\input{baseclasses/community/snowscaper}
\input{baseclasses/community/sohei}
\input{baseclasses/soldier}
\input{baseclasses/soulborn}
%\input{baseclasses/pending/starmage}
\input{baseclasses/community/stormlord}
\input{baseclasses/spiritshaman}
\input{baseclasses/summoner}
\input{baseclasses/community/swashbuckler}
\input{baseclasses/thiefacrobat}
\input{baseclasses/totemist}
\input{baseclasses/pending/thaumaturge}
\input{baseclasses/community/spherelock}
\input{baseclasses/community/warmage}
%\input{baseclasses/pending/witch}

\section{Monster Base Classes}
\input{baseclasses/fiendishbrute}
\input{baseclasses/conduit}
\input{baseclasses/truefiend}
\input{baseclasses/genie}

\section{NPC Classes}
\input{baseclasses/adept}
\input{baseclasses/warrior}

\input{multiclassing}

%%%%%%% Feats
\chapter{Feats}
\input{backgrounds}
\input{feats}
\input{outsiderfeats}
\input{elementalfeats}
\input{necromancerfeats}

%%%%%%% Prestige Classes
\chapter{Prestige Classes}

\section{Spellcasting}
\input{prestige/community/arcanearcher}
\input{prestige/community/arcanestrategist}
\input{prestige/barrister}
\input{prestige/community/bladesinger}
%\input{prestige/bonebladereaper}
\input{prestige/bonebladereaper_revised}
\input{prestige/celestialbeacon}
\input{prestige/corpselight}
\input{prestige/deathking}
\input{prestige/defiler}
\input{prestige/community/eldritchknight}
\input{prestige/heartlessmage}
\input{prestige/hellwalker}
\input{prestige/initiateofblacktower}
\input{prestige/lorddamned}
\input{prestige/lurker}
\input{prestige/masterofnecromanticmysteries}
\input{prestige/masterofsnakemountain}
\input{prestige/ninjaofgax}
\input{prestige/community/ogremage}
\input{prestige/pumpkinking}
\input{prestige/seekerofthelosttraditions}
\input{prestige/seeroftempest}
\input{prestige/skindancer}
\input{prestige/speakerfordead}
\input{prestige/strangerwithburningeyes}
\input{prestige/soulmerchant}
\input{prestige/thiefofsouls}
\input{prestige/uttercold}
\input{prestige/widowqueen}

\section{Martial}
%\input{prestige/pending/berzerker}%
\input{prestige/community/bignob}
%\input{prestige/pending/bladefighter}%
\input{prestige/boatman}
\input{prestige/bonerider}
\input{prestige/community/crusaderelemental}
\input{prestige/deathknight}
\input{prestige/community/defenderofwoods}
\input{prestige/demonsamurai}
\input{prestige/community/disciplespiritwave}
\input{prestige/community/dragondisciple}
\input{prestige/dragonlancer}
\input{prestige/community/drunkenmaster}
\input{prestige/dungeonveteran}
\input{prestige/elothar}
\input{prestige/community/enlighteneddisciple}
\input{prestige/community/gentlemonk}
\input{prestige/community/holycrusader}
%\input{prestige/pending/invisibleblade}%
\input{prestige/legendarystrategist}
\input{prestige/community/lunarknight}
\input{prestige/community/maelstrom}
\input{prestige/community/meteorninja}
\input{prestige/community/tigermonk}

\section{Racial}
\input{prestige/halfdragon}
\input{prestige/progenitor}
\input{prestige/monitor}

\section{Paragon}
\input{prestige/ghoulparagon}
\input{prestige/swordwraithparagon}
\input{prestige/vampireparagon}



%%%%%%% Equipment
\chapter{Money and Equipment}
\vspace*{-36pt}
\begin{flushright}\quot{``A warrior is measured by his sword."} \end{flushright}

\input{weapons}
\input{armor}
\input{economics}


%%%%%%% Combat Basics
\chapter{Combat Basics}
\input{RoWintro}
\input{combat}


%%%%%%% Advanced Combat
\chapter{Advanced Combat}

\input{combat2}
\input{masscombat}
\input{worldwar}
\input{logistics}

%\input{advcombat}This was all integrated into combat.tex and combatII.tex


%%%%%%% Conditions & Special Abilities
\chapter{Conditions \& Special Abilities}

\input{conditions}
\input{specialabilities}


%%%%%%% Combat
%\chapter{Combat}

%\input{RoWintro}
%\input{advcombat}
%\input{masscombat}
%\input{worldwar}
%\input{logistics}


\chapter{Magic}

\input{magic}
\input{necromaticspells}
\input{fiendishtaint}
\input{fiendspheres}
\input{otherspheres}
\input{fiendishrules}
%\input{spells}



\chapter{Adventuring}
\input{social}
\input{underdark}
\input{writings}
\input{highadventure}
\input{ruleinhell}
\input{dungeons}
\input{dungeonsofnote}


\chapter{Monsters}
\input{undead}
\input{necromaticlocations}
\input{undeadmonsters}


% Okay, we're switching to appendices now.
\appendix

%%%%%%% Appendix 1: Book of Gears
\chapter{The Book of Gears}
\input{bookofgears}

%%%%%%% Appendix 2: Community created material/
%some items commented out due to being works in progress -Aktariel
\chapter{Community Material}

\input{community}
\section{Skills}
\input{community/skillproblems}

%When I get around to formatting these and making a \newcommand that can handle them all, then
%this will be added. - Aktariel
%\section{Magic Items}
%\input{community/items/25videogame}

% Credits
\input{community/credits}

\end{document}
